<?php
// This is the login API call used to login a user to the mobile app. 
// uncomment for debugging
require '../config/standard/config.php'; 
include 'RestRequest.php';
include 'RestUtils.php';
include 'MobileConfig.php';
require 'include/functions.php';

      
     
$data = RestUtils::processRequest();

switch($data->getMethod()) 
{ 
          
    case 'get':	             
        // This does not require a user session as this just validates that the 
        // Mobile extension is installed.
        
        $response = Validate($Owner, $MAJOR_VERSION, $MINOR_VERSION, $BUILD_VERSION, $TYPE, $APIMESSAGE);    
        // Do Get
        RestUtils::sendResponse(200,$response,'application/json');
    break;
    case 'post':
           $response = Validate();    
        // Do Get
        RestUtils::sendResponse(200, $response,'application/json');
       //RestUtils::sendResponse(200, $array['username'],'application/json');

    break; 
}

?>